package com.manage.appuser.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.manage.appuser.dao.IAppUserDao;
import com.manage.appuser.model.AppUser;
import com.manage.base.dao.impl.BaseDaoImpl;

@Repository("appUserDao")
public class AppUserDaoImpl
		extends BaseDaoImpl<AppUser>
		implements IAppUserDao {

	@Override
	public AppUser detail(AppUser param) {
		return getSqlSession().selectOne("AppUserMapper.detail", param);
	}

	@Override
	public List<AppUser> select(AppUser user) {
		return getSqlSession().selectList("AppUserMapper.select", user);
	}

	@Override
	public int selectTotalCount(AppUser param) {
		return getSqlSession().selectOne("AppUserMapper.selectTotalCount",param);
	}
	
	@Override
	public int updateAppuser(AppUser param) {
		return getSqlSession().update("AppUserMapper.updateAppuser",param);
	}
	
	
}
